package com.ruoyi.warning.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenhc
 * @since 2025-03-25
 */
@Data
@TableName("alerts")
@ApiModel("告警")
public class Alert implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("告警记录的唯一标识")
    private Integer id;

    @ApiModelProperty("设备的唯一标识")
    private Integer deviceId;

    @ApiModelProperty("规则的唯一标识")
    private Integer ruleId;

    @ApiModelProperty("告警的状态")
    private Integer state;

    @ApiModelProperty("是否已告警的标识")
    private Integer alerted;

    @ApiModelProperty("是否开启的标识")
    private Integer open;

    @ApiModelProperty("告警的备注信息")
    private String note;

    @ApiModelProperty("告警发生的时间戳")
    private LocalDateTime timestamp;

    @ApiModelProperty("告警的详细信息")
    private String info;
}
